package com.lumm.model;

public class Favour {
    private Integer userId;

    private Short maritalStatus;

    private String nation;

    private String religion;

    private Short bloodGroup;

    private String domicile;

    private Short education;

    private String major;

    private Short height;

    private Short weight;

    private Short house;

    private Short car;

    private Short organizationType;

    private Short monthlySalary;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Short getMaritalStatus() {
        return maritalStatus;
    }

    public void setMaritalStatus(Short maritalStatus) {
        this.maritalStatus = maritalStatus;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation == null ? null : nation.trim();
    }

    public String getReligion() {
        return religion;
    }

    public void setReligion(String religion) {
        this.religion = religion == null ? null : religion.trim();
    }

    public Short getBloodGroup() {
        return bloodGroup;
    }

    public void setBloodGroup(Short bloodGroup) {
        this.bloodGroup = bloodGroup;
    }

    public String getDomicile() {
        return domicile;
    }

    public void setDomicile(String domicile) {
        this.domicile = domicile == null ? null : domicile.trim();
    }

    public Short getEducation() {
        return education;
    }

    public void setEducation(Short education) {
        this.education = education;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major == null ? null : major.trim();
    }

    public Short getHeight() {
        return height;
    }

    public void setHeight(Short height) {
        this.height = height;
    }

    public Short getWeight() {
        return weight;
    }

    public void setWeight(Short weight) {
        this.weight = weight;
    }

    public Short getHouse() {
        return house;
    }

    public void setHouse(Short house) {
        this.house = house;
    }

    public Short getCar() {
        return car;
    }

    public void setCar(Short car) {
        this.car = car;
    }

    public Short getOrganizationType() {
        return organizationType;
    }

    public void setOrganizationType(Short organizationType) {
        this.organizationType = organizationType;
    }

    public Short getMonthlySalary() {
        return monthlySalary;
    }

    public void setMonthlySalary(Short monthlySalary) {
        this.monthlySalary = monthlySalary;
    }

    public static Favour createDefault(int userId){
        Favour favour=new Favour();

        favour.userId=userId;

        favour.bloodGroup=0;
        favour.car=0;
        favour.domicile="未设置";

        favour.height=0;
        favour.house=0;
        favour.education=0;
        favour.organizationType=0;

        favour.nation="未设置";
        favour.religion="未设置";

        favour.maritalStatus=0;
        favour.major="未设置";

        favour.domicile="未设置";

        favour.monthlySalary=0;

        favour.weight=0;

        return favour;
    }

}